package com.xique.park.controller.client.web.controller;

import com.xique.common.core.web.controller.BaseController;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.park.controller.client.web.service.biz.service.IWxAppHomeBizService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shd
 * @create 2021/11/4 9:14
 */
@RestController
@RequestMapping("/app/home")
@Slf4j
public class WxAppHomeController extends BaseController {

    @Autowired
    private IWxAppHomeBizService wxAppHomeBizService;

    /**
     * 车场统计信息
     * @author shd
     * @date 2021/11/3 11:52
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @GetMapping("/parkStatistic")
    public AjaxResult parkStatistic() {
        return wxAppHomeBizService.getParkStatistic();
    }
}
